<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
	<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	request.setAttribute("contextPath", request.getContextPath());
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>
<body>
<body>
	<a href="">首页</a><br/>
	<c:forEach items="${tls}" var="trolleyline">
			
				<td>书名:</td>
				<td><input id="bookName" name="bookName" value="${trolleyline.book.name}"  type="text"></td>
			
			
				<td>数量:</td>
				<td><input id="amount" name="amount" value="${trolleyline.amount}"  type="text"></td>
			
			
				<td>价格:</td>
				<td><input id="bookPrice" name="bookPrice" value="${trolleyline.bookPrice}"  type="text"></td>
			<br/>
			</c:forEach>
	<form id="orderForm" action="${contextPath }/order/pay" method="get">
		<table border="1">
		<input id="orderId" name="orderId" value="${orderId}" type="hidden">
				<tr>
				<td>总价:</td>
				<td><input id="price" name="price" value="${price}" type="text"></td>
			</tr>
			<tr>
				<td>收货人姓名:</td>
				<td><input id="receiverName" name="receiverName" value="${receiverName}" type="text"></td>
			</tr>
			<tr>
				<td>地址:</td>
				<td><input id="receiverAddr" name="receiverAddr" value="${receiverAddr}" type="text"></td>
			</tr>
			<tr>
				<td>手机号码:</td>
				<td><input id="receiverPhonenum" name="receiverPhonenum" value="${receiverPhonenum}"
					type="text"></td>
			</tr>
			<tr>
				<td>备注:</td>
				<td><input id="note" name="note" value="${note}" type="text"></td>
			</tr>
			<tr>
				<td><input id="submitButton" type="submit" value="支付">
			</tr>
		</table>
	</form>

</body>
</body>
</html>